import request from '@/common/js/request.js'


const homeApi = {
  saveSend: '/apl_arrive_detail/saveSend', // 通过applyidl来查询对应的案件送达详情
  getArriveDetailsById: '/apl_arrive_main/getArriveDetailsById', // 查询送达详情
  getReviewDetailByApplyid: 'apl_arrive_detail/getReviewDetailByApplyid'  ,//查询
  deleteDetailById: '/apl_arrive_detail/deleteDetailById', // 通过id删除送达记录
}


export function getArriveDetailsById(applyid) {
  return request({
    url: homeApi.getArriveDetailsById,
    method: 'post',
	params: {applyid}
  })
}


export function getReviewDetailByApplyid(applyid) {
  return request({
    url: homeApi.getReviewDetailByApplyid,
    method: 'post',
	params: {applyid}
  })
}

export function saveSend (params,body) {
    return request({
        url: homeApi.saveSend,
        method: 'post',
        data: body,
        params: params
    })
}

/**
 * 通过id删除送达记录
 * @param {*} id
 * @returns
 */
export function deleteDetailById (id) {
    return request({
        url: homeApi.deleteDetailById,
        method: 'post',
        params: {
            id: id
        }
    })
}